<template>
  <div class="home">
      <my-input v-model="msg"></my-input>
      <!-- v-model:modelValue 跟的是 modelValue 可以省略不写-->
      <div>{{msg}}</div>
  </div>
</template>

<script>
// @ is an alias to /src
import { ref } from 'vue';
import myInput from '../components/myInput'
export default {
  name: 'Home',
  components: {
    myInput
  },
  setup(props) {
    const msg = ref('');
    return {
      msg
    }
  }
}
</script>
